var Adv_skd=require("./Adv_skd")
Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.pvzChannel = undefined;
var $2pvzChannelJSDX = require("pvzChannelJSDX");
var $2pvzChannelTT = require("pvzChannelTT");
var $2pvzChannelWeb = require("pvzChannelWeb");
var $2pvzChannelWx = require("pvzChannelWx");
var $2pvzChannelWx2 = require("pvzChannelWx2");
var $2pvzChannelWx3 = require("pvzChannelWx3");
var $2pvzChannelWx4 = require("pvzChannelWx4");
var $2pvzChannelWx5 = require("pvzChannelWx5");
var $2pvzChannelWx6 = require("pvzChannelWx6");
var $2pvzChannelWx7 = require("pvzChannelWx7");
var exp_pvzChannel = /* */ function() {
    function _ctor() {
        babel_classCallCheck(this, _ctor);
        this.channel = "web";
        this.channelMap = new Map([
            ["web", new $2pvzChannelWeb.pvzChannelWeb()],
            ["wx", new $2pvzChannelWx.pvzChannelWx()],
            ["wx2", new $2pvzChannelWx2.pvzChannelWx2()],
            ["wx3", new $2pvzChannelWx3.pvzChannelWx3()],
            ["wx4", new $2pvzChannelWx4.pvzChannelWx4()],
            ["wx5", new $2pvzChannelWx5.pvzChannelWx5()],
            ["wx6", new $2pvzChannelWx6.pvzChannelWx6()],
            ["wx7", new $2pvzChannelWx7.pvzChannelWx7()],
            ["tt", new $2pvzChannelTT.pvzChannelTT()],
            ["jsdx", new $2pvzChannelJSDX.pvzChannelJSDX()]
        ]);
    }
    babel_createClass(_ctor, [{
        key: "getPara",
        value: function getPara(e) {
            return this.getChannel().getPara(e);
        }
    }, {
        key: "getChannel",
        value: function getChannel() {
            return this.channelMap.get(this.channel);
        }
    }, {
        key: "getRuanZhu",
        value: function getRuanZhu() {
            return this.getChannel().getRuanZhu();
        }
    }, {
        key: "apiReport",
        value: function apiReport(e) {
            var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            this.getChannel().apiReport(e, t);
        }
    }, {
        key: "exit",
        value: function exit() {
            this.getChannel().exit();
        }
    }, {
        key: "getSysInfo",
        value: function getSysInfo() {
            return this.getChannel().getSysInfo();
        }
    }, {
        key: "hasPrivacy",
        value: function hasPrivacy() {
            return this.getChannel().hasPrivacy();
        }
    }, {
        key: "privacyAgree",
        value: function privacyAgree() {
            return this.getChannel().privacyAgree();
        }
    }, {
        key: "getCtrl",
        value: function getCtrl(e) {
            return this.getChannel().getCtrl(e);
        }
    }, {
        key: "getPrivacyShort",
        value: function getPrivacyShort() {
            return this.getChannel().getPrivacyShort();
        }
    }, {
        key: "getPrivacy",
        value: function getPrivacy() {
            return this.getChannel().getPrivacy();
        }
    }, {
        key: "init",
        value: function init() {
            this.getChannel().init();
        }
    }, {
        key: "canShare",
        value: function canShare() {
            return this.getChannel().canShare();
        }
    }, {
        key: "shareAppMessage",
        value: function shareAppMessage(e) {
            var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            var a = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
            this.getChannel().shareAppMessage(e, t, a);
        }
    }, {
        key: "copyToClip",
        value: function copyToClip(e, t) {
            this.getChannel().copyToClip(e, t);
        }
    }, {
        key: "showVideo",
        value: function showVideo(e) {
            Adv_skd.default.instance.showVideo(()=>{
                e.sucCall&&e.sucCall();
            },()=>{
                
            })
            // this.getChannel().showVideo(e);
        }
    }, {
        key: "addGird9Icon",
        value: function addGird9Icon(e, t) {
            this.getChannel().addGird9Icon(e, t);
        }
    }, {
        key: "gird9IconClick",
        value: function gird9IconClick() {
            this.getChannel().gird9IconClick();
        }
    }, {
        key: "showGird9",
        value: function showGird9() {
            this.getChannel().showGird9();
        }
    }, {
        key: "canAutoGird9",
        value: function canAutoGird9() {
            return this.getChannel().canAutoGird9();
        }
    }, {
        key: "closeGird9",
        value: function closeGird9() {
            this.getChannel().closeGird9();
        }
    }, {
        key: "showBanner",
        value: function showBanner() {
            var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
            var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            var a = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
            this.getChannel().showBanner(e, t, a);
        }
    }, {
        key: "closeBanner",
        value: function closeBanner() {
            this.getChannel().closeBanner();
        }
    }, {
        key: "showBannerByTime",
        value: function showBannerByTime() {
            var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
            this.getChannel().showBannerByTime(e);
        }
    }, {
        key: "closeBannerByTime",
        value: function closeBannerByTime() {
            this.getChannel().closeBannerByTime();
        }
    }, {
        key: "checkNativeInsert",
        value: function checkNativeInsert(e) {
            return this.getChannel().checkNativeInsert(e);
        }
    }, {
        key: "showNative",
        value: function showNative(e, t, a) {
            var n = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
            var i = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
            this.getChannel().showNative(e, t, a, n, i);
        }
    }, {
        key: "loadAndShowNative",
        value: function loadAndShowNative(e, t, a) {
            this.getChannel().loadAndShowNative(e, t, a);
        }
    }, {
        key: "loadNative",
        value: function loadNative(e, t) {
            this.getChannel().loadNative(e, t);
        }
    }, {
        key: "findAndReport",
        value: function findAndReport() {
            this.getChannel().findAndReport();
        }
    }, {
        key: "reportAdShow",
        value: function reportAdShow(e, t) {
            this.getChannel().reportAdShow(e, t);
        }
    }, {
        key: "reportAdClick",
        value: function reportAdClick(e) {
            this.getChannel().reportAdClick(e);
        }
    }, {
        key: "closeNative",
        value: function closeNative(e) {
            this.getChannel().closeNative(e);
        }
    }, {
        key: "getNativeData",
        value: function getNativeData(e) {
            this.getChannel().getNativeData(e);
        }
    }, {
        key: "showCustomAd",
        value: function showCustomAd(e) {
            var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
            var a = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
            this.getChannel().showCustomAd(e, t, a);
        }
    }, {
        key: "closeCustomAd",
        value: function closeCustomAd() {
            var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
            this.getChannel().closeCustomAd(e);
        }
    }, {
        key: "showInter",
        value: function showInter() {
            var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
            this.getChannel().showInter(e);
        }
    }, {
        key: "closeInter",
        value: function closeInter() {
            this.getChannel().closeInter();
        }
    }, {
        key: "showDesktop",
        value: function showDesktop(e, t) {
            this.getChannel().showDesktop(e, t);
        }
    }, {
        key: "addShortcut",
        value: function addShortcut() {
            this.getChannel().addShortcut();
        }
    }, {
        key: "recorderStart",
        value: function recorderStart() {
            this.getChannel().recorderStart();
        }
    }, {
        key: "recorderStop",
        value: function recorderStop() {
            this.getChannel().recorderStop();
        }
    }, {
        key: "getRecordTime",
        value: function getRecordTime() {
            return this.getChannel().getRecordTime();
        }
    }, {
        key: "shareVideo",
        value: function shareVideo() {
            var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
            this.getChannel().shareVideo(e);
        }
    }, {
        key: "jumpTo",
        value: function jumpTo(e) {
            var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function() {};
            var a = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function() {};
            var n = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : function() {};
            this.getChannel().jumpTo(e, t, a, n);
        }
    }, {
        key: "canMoreGame",
        value: function canMoreGame() {
            return this.getChannel().canMoreGame();
        }
    }, {
        key: "showMoreGameBox",
        value: function showMoreGameBox(e, t, a) {
            this.getChannel().showMoreGameBox(e, t, a);
        }
    }, {
        key: "isShowJsdxBuy",
        value: function isShowJsdxBuy() {
            return this.getChannel().isShowJsdxBuy();
        }
    }, {
        key: "showJsdxBuy",
        value: function showJsdxBuy(e) {
            this.getChannel().showJsdxBuy(e);
        }
    }, {
        key: "startAdTimeCount",
        value: function startAdTimeCount(e, t) {
            var a = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
            this.getChannel().startAdTimeCount(e, t, a);
        }
    }, {
        key: "pauseAdTimeCount",
        value: function pauseAdTimeCount() {
            this.getChannel().pauseAdTimeCount();
        }
    }], [{
        key: "instance",
        value: function instance() {
            _ctor._me || (_ctor._me = new _ctor());
            return _ctor._me;
        }
    }]);
    return _ctor;
}();
exports.pvzChannel = exp_pvzChannel;
exp_pvzChannel.isConfRemote = false;
exp_pvzChannel.remoteVerKey = "debug";
exp_pvzChannel.adDayMax = 5;
exp_pvzChannel.lastActTime = Date.now();
exp_pvzChannel.bt2_firstFree = false;
exp_pvzChannel.bt3_firstFree = false;
exp_pvzChannel.bt4_firstFree = false;